home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / cd-sup / cdrom / ide-fix / installsoftware < prev    next >
Text File  |  1999-01-01  |  33KB  |  1,259 lines

  1. ;$VER: IDEfix Install 49.2 (21.12.97)
  2. ;Copyright ©1993-1997 Elaborate Bytes, Oliver Kastl
  3.  
  4. ( set #ControlDefault 1 )
  5.  
  6. (onerror
  7.     (makeassign "CacheCDFSInst" (safe))
  8.     (makeassign "CacheCDFS" (safe))
  9. )
  10.  
  11. (set #autoMount 1)
  12. (set #CDDevice_NC "CD" )
  13. (set #instEjectCD 1)
  14. (set #instEject 1)
  15. (set #ReplaceOld 1 )
  16. (set #DeleteOld 1 )
  17.  
  18. (set #wbversion (getversion "libs:version.library"))
  19. (set #wbversion (/ #wbversion 65536) )
  20.  
  21. (complete 0)
  22.  
  23. (if (< #wbversion 37)
  24.     (abort "\n\nAmigaDOS 2.04 or higher is required for CacheCDFS! "
  25.              "\n\nAn upgrade will be needed for your Amiga." )
  26. )
  27.  
  28.  
  29. ;(if (< (getdiskspace "SYS:") 409600)
  30. ;    (abort "\n\nApproximately 400K of disk space is needed on your SYS: volume."
  31. ;             "\n\nYou only have " (/ (getdiskspace "SYS:") 1024)    "K free.\n\n"
  32. ;             "Delete or transfer some files from the SYS: volume and try again." )
  33. ;)
  34.  
  35. (makeassign "CacheCDFSInst" "" ( safe) )
  36.  
  37.  
  38. (set #theirlevel @user-level )
  39.  
  40. (set #Match ( run "CacheCDFSInst:CheckIDEfix" ( safe ) ) )
  41.  
  42. (user 2)
  43.  
  44. (message "\nWelcome to IDE-fix, CacheCDFS2, CD32-Emulator and PlayCD!"
  45.             "\n\nThis package is the complete solution for all your IDE and CD-ROM problems! " 
  46.          "\n\n"
  47.          "IDEfix allows you to use 4 harddisks and SyQuest drives with your IDE port, "
  48.          "ATAPI controls IDE CD-Roms, "
  49.          "CacheCDFS, PlayCD and CD32-Emulator power any IDE or SCSI-II CD-Rom!"
  50.          "\n\nEnjoy it! " )
  51.  
  52.  
  53. ( if (NOT @pretend )
  54.    (
  55.    (if ( run "CacheCDFSInst:Register/Register" )
  56.        (
  57.        (abort)
  58.        )
  59.     )
  60. ))
  61.  
  62. (set #DefaultDir
  63.     (askdir
  64.         (prompt "\n\nSpecify the place, where the IDEfix97 directory will be created:" )
  65.         (help "\n\nIDE-fix and CacheCDFS contain a number of support programs. "
  66.         "This directory will specifiy where the IDEfix97 directory will be placed.")
  67.         (default @default-dest)
  68.         (newpath)
  69.     )
  70. )
  71.  
  72. (user #theirlevel)
  73.  
  74. (set #CDFSDir (tackon #DefaultDir "IDEfix97"))
  75.  
  76. (if (NOT (exists #CDFSDir ))
  77.     (
  78.     (makedir #CDFSDir
  79.         (safe)
  80.         (infos)
  81.     )
  82.     )
  83. )
  84.  
  85. (set @default-dest #CDFSDir)
  86.  
  87.  
  88. (makeassign "CacheCDFS" #CDFSDir (safe))
  89.  
  90. (copyfiles
  91.     (source "CacheCDFSInst:C/UnInstall")
  92.     (prompt )
  93.     (help )
  94.     (infos)
  95.     (dest "CacheCDFS:")
  96. )
  97.  
  98. (if (NOT (exists "CacheCDFS:Backup" ))
  99.     (
  100.  
  101.     (copyfiles
  102.         (source "CacheCDFSInst:C/BackupIDEFixInstall")
  103.         (prompt )
  104.         (help )
  105.         (infos)
  106.         (dest "CacheCDFS:")
  107.     )
  108.  
  109.     (working "\nBacking up old installation ..." )
  110.  
  111.     
  112.     ( if (NOT @pretend )
  113.        (
  114.         (if ( run "CacheCDFS:BackupIDEfixInstall CacheCDFS:Backup save" )
  115.             (
  116.             (abort)
  117.             )
  118.         )
  119.     ))
  120.     )
  121. )
  122.  
  123. (textfile
  124.     (dest  "CacheCDFS:CacheCDFSUninstall.dat" )
  125.     (append "DO NOT DELETE THIS FILE!\n"
  126.               "IT IS NEEDED TO UNINSTALL IDE-FIX '97!\n")
  127. )
  128.  
  129.  
  130. (if (exists "CacheCDFSInst:Installer" )
  131.     (
  132.     (copylib
  133.         (source "CacheCDFSInst:Installer")
  134.         (dest "SYS:Utilities")
  135.     )
  136. ))
  137.  
  138. (working "\nUpdating your System ..." )
  139.  
  140. ( if (NOT @pretend )
  141.    (
  142.     (if ( run "CacheCDFSInst:C/CopyIDELibs CacheCDFSInst:" )
  143.         (
  144.         (message "\n\nPlease reboot your Amiga and start this installation program again!" )
  145.         (makeassign "CacheCDFSInst" (safe))
  146.         (makeassign "CacheCDFS" (safe))
  147.         (exit (quiet ))
  148.         ))
  149.     )
  150. )
  151.  
  152. (copyfiles
  153.     (source "CacheCDFSInst:Register")
  154.     (prompt )
  155.     (help )
  156.     (infos)
  157.     (all)
  158.     (dest "CacheCDFS:Register")
  159. )
  160.     
  161. (tooltype
  162.     (dest "CacheCDFS:Register" )
  163.     (noposition)
  164. )
  165.  
  166. (copylib
  167.     (prompt "This will copy the FormatATAPI program to your C: directory.")
  168.     (help "This will copy the FormatATAPI program to your C: directory.")
  169.     (source "CacheCDFSInst:C/FormatATAPI")
  170.     (confirm)
  171.     (dest "C:")
  172. )
  173.  
  174. (copyfiles
  175.     (prompt "This will copy Icons for the FormatATAPI and MountLS120 programs "
  176.         "to your Harddisk.")
  177.     (help "This will copy Icons for the FormatATAPI and MountLS120 programs "
  178.         "to your Harddisk.")
  179.     (source "CacheCDFSInst:LS120")
  180.     (infos)
  181.     (all)
  182.     (confirm)
  183.     (dest "CacheCDFS:LS120")
  184. )
  185.     
  186. (copyfiles
  187.     (source "CacheCDFSInst:C/InstallLS120")
  188.     (prompt )
  189.     (help )
  190.     (infos)
  191.     (dest "CacheCDFS:")
  192. )
  193.  
  194. (protect "CacheCDFS:FindDevice" "rwed" )
  195. (protect "CacheCDFS:FindDevice.info" "rwed" )
  196.  
  197. (copylib
  198.     (prompt "\n\nCopying the FindDevice program to the "
  199.               "CacheCDFS: directory.\n" )
  200.     (source "CacheCDFSInst:FindDevice")
  201.     (dest "CacheCDFS:")
  202.     (infos)
  203.     (safe)
  204.     (help "\n\nThis will copy over the FindDevice "
  205.             "program to your CacheCDFS: directory\n\nIf you do not "
  206.             "wish the FindDevice program to be transferred to your system, "
  207.             "skip this step." )
  208. )
  209.  
  210. (tooltype
  211.     (dest "CacheCDFS:FindDevice" )
  212.     (noposition)
  213. )
  214.  
  215.  
  216.     (copyfiles
  217.         (prompt "This will copy additional documentation "
  218.             "to your Harddisk. ")
  219.         (help "This will copy additional documentation "
  220.             "to your Harddisk. ")
  221.         (source "CacheCDFSInst:Docs")
  222.         (infos)
  223.         (all)
  224.         (confirm)
  225.         (dest "CacheCDFS:Docs")
  226.     )
  227.     
  228. (tooltype
  229.     (dest "CacheCDFS:Docs" )
  230.     (noposition)
  231. )
  232.  
  233.  
  234. (if (exists "CacheCDFS:FindCD" )
  235.     (
  236.     (protect "CacheCDFS:FindCD" "rwed" )
  237.     (delete "CacheCDFS:FindCD" )
  238.     )
  239. )
  240.  
  241. (if (exists "CacheCDFS:FindCD.info" )
  242.     (
  243.     (protect "CacheCDFS:FindCD.info" "rwed" )
  244.     (delete "CacheCDFS:FindCD.info" )
  245.     )
  246. )
  247.  
  248. (if (exists "L:TandemCacheCDFS" )
  249.     (
  250.     ((set #DeleteOld
  251.         (askbool
  252.         (prompt "\n\n\"L:TandemCacheCDFS\" is present from an earlier installation."
  253.                 "\n\nDelete \"L:TandemCacheCDFS\" ?" )
  254.         (help "\n\nClick \"YES\" if \"L:TandemCacheCDFS\" should be "
  255.               "deleted and \"NO\" if not!")
  256.         (default 1)
  257.         )
  258.     ))
  259.  
  260.     (if #DeleteOld
  261.     ((protect "L:TandemCacheCDFS" "rwed" )
  262.     (delete "L:TandemCacheCDFS" )
  263.     ))
  264. ))
  265.  
  266. (if (exists "L:DemoCacheCDFS" )
  267.     (
  268.     ((set #DeleteOld
  269.         (askbool
  270.         (prompt "\n\n\"L:DemoCacheCDFS\" is present from an earlier installation."
  271.                 "\n\nDelete \"L:DemoCacheCDFS\" ?" )
  272.         (help "\n\nClick \"YES\" if \"L:DemoCacheCDFS\" should be "
  273.               "deleted and \"NO\" if not!")
  274.         (default 1)
  275.         )
  276.     ))
  277.  
  278.     (if #DeleteOld
  279.     ((protect "L:DemoCacheCDFS" "rwed" )
  280.     (delete "L:DemoCacheCDFS" )
  281.     ))
  282. ))
  283.  
  284. (if (= #Match 0)
  285.     (
  286.     (copylib
  287.         (prompt "This will copy the Ship program to your C: directory.")
  288.         (help "This will copy the Ship program to your C: directory.")
  289.         (source "CacheCDFSInst:C/Ship")
  290.         (confirm)
  291.         (dest "C:")
  292.     )
  293.  
  294.     (copylib
  295.         (prompt "This will copy the ActivateCrossIDEfix program to your C: directory.")
  296.         (help "This will copy the ActicateCrossIDEfix program to your C: directory.")
  297.         (source "CacheCDFSInst:C/ActivateCrossIDEfix")
  298.         (confirm)
  299.         (dest "C:")
  300.     )
  301.  
  302.     (startup "ActivateCrossIDEfix"
  303.         (command "ActivateCrossIDEfix ALL\n" )
  304.         (prompt "\n\nInserting ActivateCrossIDEfix into the user-startup")
  305.         (help "\n\nInserting ActivateCrossIDEfix into the user-startup")
  306.     )
  307.  
  308.     (copylib
  309.         (prompt "This will copy the MountIDE program to your C: directory.")
  310.         (help "This will copy the MountIDE program to your C: directory.")
  311.         (source "CacheCDFSInst:C/MountIDE")
  312.         (confirm)
  313.         (dest "C:")
  314.     )
  315.  
  316.     (copylib
  317.         (prompt "This will copy the ConvertDrive program to your C: directory.")
  318.         (help "This will copy the ConvertDrive program to your C: directory.")
  319.         (source "CacheCDFSInst:C/ConvertDrive")
  320.         (confirm)
  321.         (dest "C:")
  322.     )
  323.  
  324.     (copylib
  325.         (prompt "This will copy the AutoParkPrefs program to your SYS:Prefs directory.")
  326.         (help "This will copy the AutoParkPrefs program to your SYS:Prefs directory.")
  327.         (source "CacheCDFSInst:Prefs/AutoParkPrefs")
  328.         (infos)
  329.         (confirm)
  330.         (dest "SYS:Prefs")
  331.     )
  332.  
  333.     (tooltype
  334.         (dest "SYS:Prefs/AutoParkPrefs" )
  335.         (noposition)
  336.     )
  337.  
  338.     (copylib
  339.         (prompt "This will copy the IDEfixPrefs program to your SYS:Prefs directory.")
  340.         (help "This will copy the IDEfixPrefs program to your SYS:Prefs directory.")
  341.         (source "CacheCDFSInst:Prefs/IDEfixPrefs")
  342.         (infos)
  343.         (confirm)
  344.         (dest "SYS:Prefs")
  345.     )
  346.  
  347.     (tooltype
  348.         (dest "SYS:Prefs/IDEfixPrefs" )
  349.         (noposition)
  350.     )
  351.  
  352.     (copyfiles
  353.         (prompt "This will copy Icons for the Ship and MountIDE programs "
  354.             "to your Harddisk. You can copy these Icons wherever you like, e.g. in your "
  355.             "SYS:WBStartUp drawer.")
  356.         (help "This will copy Icons for the Ship and MountIDE programs "
  357.             "to your Harddisk. You can copy these Icons wherever you like, e.g. in your "
  358.             "SYS:WBStartUp drawer.")
  359.         (source "CacheCDFSInst:Harddisk")
  360.         (infos)
  361.         (all)
  362.         (confirm)
  363.         (dest "CacheCDFS:Harddisk")
  364.     )
  365.     
  366.  
  367.     (tooltype
  368.         (dest "CacheCDFS:Harddisk" )
  369.         (noposition)
  370.     )
  371.  
  372.     (user 2)
  373.  
  374.     (message "\nIMPORTANT:\n\n"
  375.                 "IDEfix and LoadIDE are installed in your C: "
  376.              "directory, but You MUST start IDEfix manually, as this program "
  377.              "will NOT alter your startup-sequence! "
  378.              "\n\nEnter \"IDEfix\" or \"LoadIDE reset\" behind SetPatch in your startup-sequence "
  379.              "to use IDEfix! "
  380.              "\n\nPlease click PROCEED now.")
  381.  
  382.     (message "\nNote:\n\nYou can use \"AutoParkPrefs\" in you SYS:Prefs directory to adjust autoparking "
  383.              "of your harddrives. Autoparking switches off the motor of a drive, if the drive is "
  384.              "not used for a certain amount of time."
  385.              "\n\nPlease click PROCEED now.")
  386.  
  387.     (message "\nNote:\n\nYou can use \"ConvertDrive\" to convert drives formatted with old controllers "
  388.              "like Apollo AT or GVP AT!\n\n"
  389.              "Enter \"ConvertDrive <device> <unit>\" from the Shell. "
  390.              "\n\nPlease click PROCEED now.")
  391.  
  392.     (message "\nNote:\n\n"
  393.              "Use \"Ship\" to park your harddisks!\n\n"
  394.              "Use \"MountIDE force\" to mount additional SyQuest cartridges!"
  395.              "\n\n\nClick PROCEED to install CD-ROMs.\n\nClick ABORT to quit.")
  396.  
  397.  
  398. ;    ( run "C:IDEfix" )
  399.     )
  400. )
  401.  
  402. (user 2)
  403.  
  404. (message "\n\nNow the FindDevice program will be launched to find "
  405.          "the Device and Unit of your CD-Rom..."
  406.          "\n\nYou may let the program scan for CD-Roms by clicking \"SCAN\"."
  407.          "\n\nChoose the device and unit and click \"USE\"!"
  408.          "\n\nIf FindDevice hangs: Reboot, start the installation again and "
  409.          "click CANCEL within FindDevice!")
  410.  
  411. (working "\n\nLaunching the FindDevice program to find "
  412.          "the Device and Unit of your CD-Rom..."
  413.          "\n\nYou may let the program scan for CD-Roms by clicking \"SCAN\"."
  414.          "\n\nChoose the device and unit and click \"USE\"!"
  415.          "\n\nIf FindDevice hangs: Reboot, start the installation again and "
  416.          "click CANCEL within FindDevice!")
  417.  
  418. (set #Product ( run "CacheCDFS:FindDevice" ( safe ) ) )
  419.  
  420.  
  421. (if (= #Product 0 )
  422.     (
  423.     ( set #CDROM_Device (getenv "CDROM_Device" ))
  424.     ( set #CDROM_Unit (+ (getenv "CDROM_Unit" )))
  425.     ( set #CDROM_NumLuns (+ (getenv "CDROM_NumLuns" )))
  426.     )
  427.  
  428.     (
  429.     ( set #CDROM_NumLuns 1)
  430.     (set #CDROM_Device
  431.         (askstring
  432.             (prompt "\n\nWhat is the name for the exec device driver? " )
  433.             (default "scsi.device" )
  434.             (help "\n\nThis is the name of the device driver to use. "
  435.                     "The name is different for different configurations. "
  436.                     "\n\nConsult the manual of your SCSI/CD-Rom host adapter "
  437.                     "if you don't know the name!" )
  438.         )
  439.     )
  440.  
  441.     (set #CDROM_Unit
  442.         (asknumber
  443.             (prompt "\n\nWhat is the Unit number of your CD-Rom drive?" )
  444.             (default 5 )
  445.             (help "\n\nThis is the unit # of the CD-Rom drive.  This is usually a "
  446.                     "numerical value between 0 and 7." )
  447.         )
  448.     )
  449.  
  450.     )
  451. )
  452.  
  453.     (set #CDROM_NumLuns
  454.         (asknumber
  455.             (prompt "\n\nHow many discs fit in your CD-Rom drive?" )
  456.             (default #CDROM_NumLuns )
  457.             (help "\nThis is the number of logical units of the CD-Rom drive. This is usually a "
  458.                     "numerical value between 1 and 8.\n\n"
  459.                     "If you have a normal CD-Rom, set this to 1.\n\n"
  460.                     "If you have a CD-Rom changer, enter the number of discs that fit in your drive!" )
  461.         )
  462.     )
  463.  
  464. (user #theirlevel)
  465.  
  466. (set #DevFlags 0)
  467.  
  468. (set #Match ( run "CacheCDFSInst:MatchPattern NAME="#CDROM_Device" PATTERN=(telmexatapi#?|#?pcmcia#?)" ( safe ) ) )
  469.  
  470. (if (= #Match 0)
  471.     (
  472.     (set #DevFlags 1)
  473.     )
  474. )
  475.  
  476. (set #Match ( run "CacheCDFSInst:MatchPattern NAME="#CDROM_Device" PATTERN=(tandem#?|#?atapi#?|oktagon#?)" ( safe ) ) )
  477.  
  478. (if (= #Match 0)
  479.     ((set #ControlDefault 2))
  480. )
  481.  
  482. (set #Match ( run "CacheCDFSInst:MatchPattern NAME="#CDROM_Device" PATTERN=(scsi.#?|???.scsi.#?)" ( safe ) ) )
  483.  
  484. (if (= #Match 0)
  485.     ((set #ControlDefault 5))
  486. )
  487.  
  488. (if (= #CDROM_Device "gvpscsi.device")
  489.     ((set #ControlDefault 8))
  490. )
  491.  
  492.  
  493. (complete 20 )
  494.  
  495. (user 2)
  496.  
  497. (set #ControlMask 
  498.     (askoptions
  499.         (prompt "FileSystem -> Controller Configuration")
  500.         (choices "Use SCSI Direct" 
  501.                     "Use Diskchange Interrupt"
  502.                     "Use 24 Bit-DMA"
  503.                     "Use Motor off" )
  504.         (help    "Here You may define the behaviour of the CacheCDFS accessing the " 
  505.               #CDROM_Device ". If you are "
  506.                 "not sure what option is correct, leave the default settings as they "
  507.                 "are. They should work in most cases.\n"
  508.                 "These options may later be altered using the CDFSprefs program. "
  509.                 "However, wrong settings may lead to crashes if you mount the "
  510.                 "FileSystem!\n"
  511.                 "IF YOU HAVE A TANDEMCD / CD1200: YOU MUST DISABLE \"USE SCSI DIRECT\"!\n\n"
  512.  
  513.                 "\"Use SCSI Direct\"\n"
  514.                 "Choose this option if the SCSI controller using "
  515.                 #CDROM_Device " cannot handle DoIO reads with 2048 bytes sectorsize "
  516.                 "correctly (e.g. ALFII, controllers from Progressive Peripherals, Emplant).\n"
  517.                 "Do NOT choose this option if your controller is a modern, well designed "
  518.                 "SCSI controller (ALFIII, Oktagon, A2091, A3000, A4091) or if it is "
  519.                 "NO SCSI controller at all (TandemCD)!\n\n"
  520.  
  521.                 "\"Use Diskchange Interrupt\"\n"
  522.                 "Choose this option if the controller using "
  523.                 #CDROM_Device " does properly handle TD_ADDCHANGEINT and TD_REMCHANGEINT. "
  524.                 "All modern controllers should do this (ALFIII, Oktagon, TandemCD, "
  525.                 "GVP Series-II)\n"
  526.                 "Do NOT choose this option if your controller has problems with diskchange "
  527.                 "Interrupts (old ROM versions of A2091, A3000, A4091, controllers from "
  528.                 "Progressive Peripherals, Emplant)\n\n"
  529.  
  530.                 "\"Use 24 Bit-DMA\"\n"
  531.                 "Choose this option if the SCSI or CD controller using "
  532.                 #CDROM_Device " is a 24-Bit (Zorro II) DMA device "
  533.                 "(e.g. A2091 from Commodore).\n"
  534.                 "Do NOT choose this option if your controller is a 32-Bit "
  535.                 "(Zorro III) device (e.g. FastLane, A3000, A4091), or a non-DMA controller "
  536.                 "like the majority of controllers (e.g. ALFII/III, Oktagon, "
  537.                 "TandemCD, Golem, IVS TrumpCard, Supra) as it will lead to "
  538.                 "decreased performance!\n\n"
  539.  
  540.                 "\"Use Motor off\"\n"
  541.                 "Choose this option if the SCSI controller using "
  542.                 #CDROM_Device " is a GVP controller with \"Faaast\" roms.\n"
  543.                 "Do NOT choose this option if your controller is anything else."
  544.             )
  545.         (default #ControlDefault)
  546.     )
  547. )
  548.  
  549. (set #BufMemType  "1 /* MEMF_PUBLIC */\n" )
  550. (set #BufMemInt  1 )
  551.  
  552. (if (IN #ControlMask 2)
  553.     (
  554.     (set #BufMemType  "513 /* MEMF_PUBLIC|MEMF_24BITDMA */\n")
  555.     (set #BufMemInt  513 )
  556.     )
  557. )
  558.  
  559. (set #Control "\"MD=0 LC=1 DC=8 L LV AL LFC=1")
  560.  
  561.  
  562. (if (IN #ControlMask 0)
  563.     (
  564.     (set #Control (cat #Control " S"))
  565.     )
  566. )
  567.  
  568. (if (NOT (IN #ControlMask 1))
  569.     (
  570.     (set #Control (cat #Control " NC"))
  571.     )
  572. )
  573.  
  574. (if (IN #ControlMask 3)
  575.     (
  576.     (set #Control (cat #Control " M"))
  577.     )
  578. )
  579.  
  580.  
  581. (set #Control (cat #Control "\"\n"))
  582.  
  583.  
  584. (set #autoMount
  585.     (askbool
  586.         (prompt "\n\nWould you like the CD-Rom drive automatically mounted upon bootup?\n\n"
  587.                 "NOTE: If you are unsure if your controller will work correctly with "
  588.                 "the controller settings, you should select \"NO\"!" )
  589.         (help "\n\nIf you would like, the appropriate commands will be added to your user-startup file to automatically mount CacheCDFS.")
  590.         (default 1)
  591.     )
  592. )
  593.  
  594.  
  595. (if #autoMount
  596.     (set #mountDirectory "DEVS:DOSDrivers")
  597. )
  598.  
  599. (if (not #autoMount)
  600.     (set #mountDirectory "SYS:Storage/DOSDrivers")
  601. )
  602.  
  603. (complete 30 )
  604.  
  605. (user 1)
  606.  
  607. (set #tempCDDevice_NC #CDDevice_NC )
  608. (set #CDROM_ID (/ #CDROM_Unit 100 ))
  609. (set #CDROM_ID (- #CDROM_Unit (* #CDROM_ID 100 )))
  610.  
  611. (if (> #CDROM_NumLuns 1 )
  612.     (
  613.     (if
  614.     ( NOT (askbool
  615.         (prompt "\nYour CD-Rom changer has " #CDROM_NumLuns " discs.\n\n"
  616.                 "Do you wish to access them through different device names?" )
  617.         (help "\n\nClicking YES will mount every disc individually.")
  618.         (default 1)
  619.     ))
  620.     (set #CDROM_NumLuns 1 )
  621.     )
  622.     )
  623. )
  624.  
  625. (set #SlotNumber 0 )
  626.  
  627. ( until (= #CDROM_NumLuns #SlotNumber )
  628.  
  629. (set #CD_DeviceUnit (+ #CDROM_ID (* #SlotNumber 10 )))
  630. (set #CDDevice_NC (cat #tempCDDevice_NC #CD_DeviceUnit))
  631.  
  632. (user 2)
  633.  
  634. (set #CDDevice_NC
  635.     (askstring
  636.         (prompt "\n\nWhat is the name for the AmigaDOS device?\n\n"
  637.         "(The trailing colon MUST NOT be present)" 
  638.         )
  639.         (default #CDDevice_NC )
  640.         (help "\n\nThis is the name under which AmigaDOS will reference the "
  641.                 "CD-Rom as.  While usually "
  642.                 #CDDevice_NC
  643.                 ", it can be any name you choose. "
  644.                 "\n\nThe trailing : (colon) MUST NOT be present." )
  645.     )
  646. )
  647.  
  648. (user #theirlevel)
  649.  
  650. (set #CDDevice (cat #CDDevice_NC ":") )
  651.  
  652. (if (< #wbversion 38)
  653.     ((set #startupCommand (cat "mount " #CDDevice " from devs:MountList." #CDDevice_NC "\n") )
  654.  
  655.     (if #autoMount
  656.         (
  657.  
  658.         (if (NOT (EXISTS "S:IDEfixUserStartup" ))
  659.         ((textfile
  660.             (dest "S:IDEfixUserStartup" )
  661.             (append "; IDEfix User Startup\n"
  662.                       "; © 1997 Elaborate Bytes, O. Kastl\n"
  663.                       "\n")
  664.             )
  665.         (protect "S:IDEfixUserStartup" "srwed" )
  666.         ))
  667.  
  668.         (startup "CacheCDFS"
  669.             (command "IF EXISTS S:IDEfixUserStartup\n"
  670.                      "   EXECUTE S:IDEfixUserStartup\n"
  671.                      "ENDIF\n" )
  672.             (prompt "\n\nInserting IDEfix User Startup into the user-startup")
  673.             (help "\n\nInserting IDEfix User Startup into the user-startup")
  674.         )
  675.  
  676.         (textfile
  677.         (dest "S:IDEfixUserStartup" )
  678.         (include "S:IDEfixUserStartup" )
  679.         (append #startupCommand )
  680.         )
  681.         )
  682.     )
  683.  
  684.     (if (exists (cat "devs:MountList." #CDDevice_NC ) )
  685.         ((set #ReplaceOld
  686.             (askbool
  687.             (prompt "\n\nDEVS:MountList." #CDDevice_NC" already exists!\n\n"
  688.                     "Do you want to replace it?" )
  689.             (help "\n\nClick \"YES\" if DEVS:MountList."#CDDevice_NC" should be "
  690.                   "replaced and \"NO\" if not!")
  691.             (default 1)
  692.             )
  693.         ))
  694.     )
  695.  
  696.     (if #ReplaceOld
  697.  
  698.     ((protect (cat "devs:MountList." #CDDevice_NC) "rwed" )
  699.  
  700.     (textfile
  701.         (dest (cat "devs:MountList." #CDDevice_NC) )
  702.         (append "/***************************************************************/\n"
  703.                   "/*  CacheCDFS mountlist entry © 1993 Elaborate Bytes, O. Kastl */\n"
  704.                   "/***************************************************************/\n")
  705.         (append #CDDevice "\n")
  706.         (append "    FileSystem     = L:CacheCDFS /* The name of the game */\n" )
  707.         (append "    Device         = \""#CDROM_Device"\" /* Name of exec device driver */\n" )
  708.         (append "    Unit           = " #CD_DeviceUnit " /* exec device unit */\n" )
  709.         (append "    Flags          = " #DevFlags " /* OpenDevice flags */\n")
  710.         (append "    BlocksPerTrack = 351000 /* Unused */\n")
  711.         (append "    BlockSize      = 2048 /* True, but unused */\n")
  712.         (append "    Mask           = 0x7ffffffe /* Memory mask for direct read */\n")
  713.         (append "    MaxTransfer    = 0x1000000 /* Maximum amount of bytes for direct read */\n")
  714.         (append "    Reserved       = 0 /* Unused */\n")
  715.         (append "    Interleave     = 0 /* Unused */\n")
  716.         (append "    LowCyl         = 0 /* Unused */\n")
  717.         (append "    HighCyl        = 0 /* Unused */\n")
  718.         (append "    Surfaces       = 1 /* Unused */\n")
  719.         (append "    Buffers        = 50 /* Number of cache lines */\n")
  720.         (append "    BufMemType     = " #BufMemType )
  721.         (append "    GlobVec        = -1 /* Do not change! */\n")
  722.         (append "    Mount          = 1 /* Mount it immediately */\n")
  723.         (append "    Priority       = 10 /* Priority of FileSystem task */\n")
  724.         (append "    DosType        = 0x43443031 /* Currently unused */\n")
  725.         (append "    StackSize      = 3000 /* Minimum stack required is 3000! */\n")
  726.         (append "    Control        = "#Control)
  727.         (append "   /* The Control field is for special adjustments */\n")
  728.         (append "   /* L/S convert all file names to lowercase */\n")
  729.         (append "   /* LV/S convert volume names to lowercase */\n")
  730.         (append "   /* AL/S Auto-Lower converts only non-Amiga CDs */\n")
  731.         (append "   /* LFC/N start converting at this character */\n")
  732.         (append "   /* LC/N/A number of blocks per cache line */\n")
  733.         (append "   /* DC/N/A number of cache lines for the data cache */\n")
  734.         (append "   /* MD/N/A number of blocks, when starting direct read, not using */\n")
  735.         (append "   /* the cache. 0 will be a reasonable default (LC*DC+1) */\n")
  736.         (append "   /* S/S Do SCSI direct commands, no Trackdisk like commands! */\n")
  737.         (append "   /* NC/S Do NOT use TD_ADDCHANGEINT, poll for DiskChange! */\n")
  738.         (append "   /* M/S Issue a TD_MOTOR (OFF) command after read */\n")
  739.         (append "#\n")
  740.     )
  741.     (protect (cat "devs:MountList." #CDDevice_NC) "-e" )
  742.     )
  743.     )
  744. ))
  745.  
  746.  
  747.  
  748. (if (> #wbversion 37)
  749.     (
  750.  
  751.     (if (exists (tackon #mountDirectory #CDDevice_NC ) )
  752.         ((set #ReplaceOld
  753.             (askbool
  754.             (prompt "\n\n" (tackon #mountDirectory #CDDevice_NC) " already exists!\n\n"
  755.                     "Do you want to replace it?" )
  756.             (help "\n\nClick \"YES\" if " (tackon #mountDirectory #CDDevice_NC) " should be "
  757.                   "replaced and \"NO\" if not!")
  758.             (default 1)
  759.             )
  760.         ))
  761.     )
  762.  
  763.     (if #ReplaceOld
  764.  
  765.     ((protect (tackon #mountDirectory #CDDevice_NC) "rwed" )
  766.  
  767.     (textfile
  768.         (dest (tackon #mountDirectory #CDDevice_NC) )
  769.         (append "/***************************************************************/\n"
  770.                   "/*  CacheCDFS mountlist entry © 1993 Elaborate Bytes, O. Kastl */\n"
  771.                   "/***************************************************************/\n")
  772.         (append "    FileSystem     = L:CacheCDFS /* The name of the game */\n" )
  773.         (append "    Device         = \""#CDROM_Device"\" /* Name of exec device driver */\n" )
  774.         (append "    Unit           = " #CD_DeviceUnit " /* exec device unit */\n" )
  775.         (append "    Flags          = " #DevFlags " /* OpenDevice flags */\n")
  776.         (append "    BlocksPerTrack = 351000 /* Unused */\n")
  777.         (append "    BlockSize      = 2048 /* True, but unused */\n")
  778.         (append "    Mask           = 0x7ffffffe /* Memory mask for direct read */\n")
  779.         (append "    MaxTransfer    = 0x1000000 /* Maximum amount of bytes for direct read */\n")
  780.         (append "    Reserved       = 0 /* Unused */\n")
  781.         (append "    Interleave     = 0 /* Unused */\n")
  782.         (append "    LowCyl         = 0 /* Unused */\n")
  783.         (append "    HighCyl        = 0 /* Unused */\n")
  784.         (append "    Surfaces       = 1 /* Unused */\n")
  785.         (append "    Buffers        = 50 /* Number of cache lines */\n")
  786.         (append "    BufMemType     = " #BufMemType )
  787.         (append "    GlobVec        = -1 /* Do not change! */\n")
  788.         (append "    Mount          = 1 /* Mount it immediately */\n")
  789.         (append "    Priority       = 10 /* Priority of FileSystem task */\n")
  790.         (append "    DosType        = 0x43443031 /* Currently unused */\n")
  791.         (append "    StackSize      = 3000 /* Minimum stack required is 3000! */\n")
  792.         (append "    Control        = "#Control)
  793.         (append "   /* The Control field is for special adjustments */\n")
  794.         (append "   /* L/S convert all file/volume names to lowercase */\n")
  795.         (append "   /* LV/S convert volume names to lowercase */\n")
  796.         (append "   /* AL/S Auto-Lower converts only non-Amiga CDs */\n")
  797.         (append "   /* LFC/N start converting at this character */\n")
  798.         (append "   /* LC/N/A number of blocks per cache line */\n")
  799.         (append "   /* DC/N/A number of cache lines for the data cache */\n")
  800.         (append "   /* MD/N/A number of blocks, when starting direct read, not using */\n")
  801.         (append "   /* the cache. 0 will be a reasonable default (LC*DC+1) */\n")
  802.         (append "   /* S/S Do SCSI direct commands, no Trackdisk like commands! */\n")
  803.         (append "   /* NC/S Do NOT use TD_ADDCHANGEINT, poll for DiskChange! */\n")
  804.         (append "   /* M/S Issue a TD_MOTOR (OFF) command after read */\n")
  805.     )
  806.  
  807.     (protect (tackon #mountDirectory #CDDevice_NC) "-e" )
  808.  
  809.     (copyfiles
  810.             (prompt "\n\nCopying Mountlist icon")
  811.             (source "CacheCDFSInst:Devs/DOSDrivers/CD0.info")
  812.             (dest #mountDirectory)
  813.             (newname (cat #CDDevice_NC ".info"))
  814.             (help "\n\nThis will copy over an icon for the mountlist file.")
  815.             (confirm)
  816.  
  817.     ))
  818.     )
  819.  
  820.     (protect "S:User-Startup" "srwed" )
  821.     (startup "CacheCDFS"
  822.         (prompt "\n\nRemoving MOUNT command from the startup-sequence")
  823.         (help "\n\nThe command \"MOUNT " #CDDevice " FROM DEVS:MOUNTLIST." #CDDevice_NC "\" will be removed from your "
  824.                 "\"S:Startup-Sequence\" or \"S:User-Startup\" file if it is present from "
  825.                 "an earlier installation." )
  826.         )
  827.  
  828.     (if ( exists ( cat "devs:MountList." #CDDevice_NC ) )
  829.  
  830.         ((protect (cat "devs:MountList." #CDDevice_NC) "rwed " )
  831.         (delete (cat "devs:MountList." #CDDevice_NC)
  832.             (prompt "\n\nDeleting file \"DEVS:MOUNTLIST." #CDDevice_NC "\"" )
  833.             (help "\n\nThe file \"DEVS:MOUNTLIST." #CDDevice_NC "\" will be deleted "
  834.                     "if it is present from an earlier installation." )
  835.             (confirm)
  836.             )
  837.         ))
  838.     )
  839. )
  840.  
  841. (set #SlotNumber (+ #SlotNumber 1 ))
  842.  
  843. (set #doMount
  844.     (askbool
  845.     (prompt "\n\nMount " #CDDevice " now ?")
  846.     (help "Select, if your CD-Rom should be mounted now, or not.")
  847.     (default 1)
  848.     )
  849. )
  850.  
  851. ( if @pretend ((set #doMount 0))) 
  852.  
  853. (if #doMount
  854.     (
  855.     (working "\n\nMounting CD-Rom...."
  856.              "\n\nPlease Wait!")
  857.  
  858.         ( run (cat "CacheCDFSInst:KillDev " #CDDevice " Quiet"))
  859.  
  860.         (if (< #wbversion 38)
  861.             (
  862.             (run (cat "C:Mount " #CDDevice " from devs:MountList." #CDDevice_NC ))
  863.             )
  864.         )
  865.  
  866.         (if (> #wbversion 37)
  867.             (
  868.                 (run (cat "C:Mount " #CDDevice  ))
  869.             )
  870.         )
  871. ))
  872.  
  873. )
  874.  
  875. (complete 40 )
  876.  
  877. (if ( NOT (= #theirlevel 2 ) )
  878.     (
  879.     (set #instChanger ( NOT ( run "CacheCDFSInst:Changer DEVICE="#CDROM_Device" UNIT="#CDROM_Unit" TEST" ( safe ) ) ) )
  880.     )
  881. )
  882.  
  883. (if (= #theirlevel 2 )
  884.     (
  885.     (set #instChanger 1)
  886.     )
  887. )
  888.  
  889. (if #instChanger
  890.     ((set #instChanger
  891.         (askbool
  892.             (prompt "\n\nShould the ATAPI Changer utility be installed?\n\n"
  893.                       "NOTE: This program is only required, if you have an ATAPI "
  894.                       "CD-ROM changer!" )
  895.             (help "\n\nThis will copy over the ATAPI Changer utility "
  896.                     "to your harddisk.\n\nIf you do not "
  897.                     "wish the Changer program to be transferred to your system, "
  898.                     "skip this step.\n" )
  899.             (default 1)
  900.         )
  901.     )
  902. ))
  903.  
  904. (if #instChanger
  905.     (
  906.     (if (exists "CacheCDFS:AtapiChanger" )
  907.         (
  908.         (protect "CacheCDFS:AtapiChanger" "rwed" )
  909.         (delete "CacheCDFS:AtapiChanger" )
  910.         )
  911.     )
  912.  
  913.     (if (exists "CacheCDFS:AtapiChanger.info" )
  914.         (
  915.         (protect "CacheCDFS:AtapiChanger.info" "rwed" )
  916.         (delete "CacheCDFS:AtapiChanger.info" )
  917.         )
  918.     )
  919.  
  920.     (protect "CacheCDFS:Changer" "rwed" )
  921.     (protect "CacheCDFS:Changer.info" "rwed" )
  922.     (copylib
  923.         (prompt "\n\nCopying the Changer program to the "
  924.                   "CacheCDFS: directory." )
  925.         (source "CacheCDFSInst:Changer")
  926.         (dest "CacheCDFS:")
  927.         (help "\n\nThis will copy over the ATAPI Changer utility "
  928.                 "to your harddisk.\n\nIf you do not "
  929.                 "wish the Changer program to be transferred to your system, "
  930.                 "skip this step.\n" )
  931.         (infos)
  932.         (confirm)
  933.     )
  934.  
  935.     (tooltype
  936.         (dest "CacheCDFS:Changer" )
  937.         (settooltype "DEVICE" #CDROM_Device )
  938.         (settooltype "UNIT" ("%ld" #CDROM_Unit ))
  939.         (noposition)
  940.     )
  941. ))
  942.  
  943. (complete 50 )
  944.  
  945. (set #instCDFSprefs
  946.     (askbool
  947.         (prompt "\n\nShould the CDFSprefs utility be installed?")
  948.         (help "\n\nThis will copy over the CDFSprefs utility "
  949.                 "to your SYS:Prefs directory\n\nIf you do not "
  950.                 "wish the CDFSprefs program to be transferred to your system, "
  951.                 "skip this step.\n" )
  952.         (default 1)
  953.     )
  954. )
  955.  
  956. (if #instCDFSprefs
  957.     ((protect "SYS:Prefs/CDFSprefs" "rwed" )
  958.     (protect "SYS:Prefs/CDFSprefs.info" "rwed" )
  959.     (copylib
  960.         (prompt "\n\nCopying the CDFSprefs program to the "
  961.                   "SYS:Prefs directory." )
  962.         (source "CacheCDFSInst:Prefs/CDFSprefs")
  963.         (dest "SYS:Prefs")
  964.         (infos)
  965.         (help "\n\nThis will copy over the CDFSprefs "
  966.                 "program to your SYS:Prefs directory\n\nIf you do not "
  967.                 "wish the CDFSprefs program to be transferred to your system, "
  968.                 "skip this step." )
  969.         (confirm)
  970.     )
  971.  
  972.     (tooltype
  973.         (dest "SYS:Prefs/CDFSprefs" )
  974.         (noposition)
  975.     )
  976. ))
  977.  
  978. (complete 60 )
  979.  
  980. (set #instKillDev
  981.     (askbool
  982.         (prompt "\n\nShould the KillDev utility be installed?")
  983.         (help "\n\nThis will copy over the KillDev utility "
  984.                 "to your CacheCDFS directory\n\nIf you do not "
  985.                 "wish the KillDev program to be transferred to your system, "
  986.                 "skip this step." )
  987.         (default 1)
  988.     )
  989. )
  990.  
  991. (if #instKillDev
  992.     ((protect "CacheCDFS:KillDev" "rwed" )
  993.     (protect "CacheCDFS:KillDev.info" "rwed" )
  994.     (copylib
  995.         (prompt "\n\nCopying the KillDev program to the "
  996.                   "CacheCDFS: directory.\n" )
  997.         (source "CacheCDFSInst:KillDev")
  998.         (dest "CacheCDFS:")
  999.         (infos)
  1000.         (help "\n\nThis will copy over the KillDev "
  1001.                 "program to your CacheCDFS: directory\n\nIf you do not "
  1002.                 "wish the KillDev program to be transferred to your system, "
  1003.                 "skip this step." )
  1004.         (confirm)
  1005.     )
  1006.  
  1007.     (tooltype
  1008.         (dest "CacheCDFS:KillDev" )
  1009.         (settooltype "DOSDEV" #CDDevice )
  1010.         (noposition)
  1011.     )
  1012. ))
  1013.  
  1014. (if #instEject
  1015.     (
  1016.     (set #instEject
  1017.     (askbool
  1018.         (prompt "\n\nShould the Eject utility be installed?")
  1019.         (help "\n\nThis will copy over the Eject utility "
  1020.                 "to your CDFS directory\n\nIf you do not "
  1021.                 "wish the Eject program to be transferred to your system, "
  1022.                 "skip this step.\n" )
  1023.         (default 1)
  1024.     )
  1025.     ))
  1026. )
  1027.  
  1028. (if #instEject
  1029.     ((protect "CacheCDFS:Eject" "rwed" )
  1030.     (protect "CacheCDFS:Eject.info" "rwed" )
  1031.     (copylib
  1032.         (prompt "\n\nCopying Eject program to the "
  1033.                   "CacheCDFS: directory.\n" )
  1034.         (source "CacheCDFSInst:Eject")
  1035.         (dest "CacheCDFS:")
  1036.         (help "\n\nThis will copy over the Eject utility "
  1037.                 "to your CacheCDFS directory\n\nIf you do not "
  1038.                 "wish the Eject program to be transferred to your system, "
  1039.                 "skip this step.\n" )
  1040.         (infos)
  1041.         (confirm)
  1042.     )
  1043.  
  1044. ))
  1045.  
  1046. (complete 70 )
  1047.  
  1048.  
  1049. (if #instEjectCD
  1050.     (
  1051.     (set #instEjectCD
  1052.     (askbool
  1053.         (prompt "\n\nShould the EjectCD utility be installed?")
  1054.         (help "\n\nThis will copy over the EjectCD utility "
  1055.                 "to your CDFS directory\n\nIf you do not "
  1056.                 "wish the EjectCD program to be transferred to your system, "
  1057.                 "skip this step.\n" )
  1058.         (default 1)
  1059.     )
  1060.     ))
  1061. )
  1062.  
  1063. (if #instEjectCD
  1064.     ((protect "CacheCDFS:EjectCD" "rwed" )
  1065.     (protect "CacheCDFS:EjectCD.info" "rwed" )
  1066.     (copylib
  1067.         (prompt "\n\nCopying EjectCD program to the "
  1068.                   "CacheCDFS: directory.\n" )
  1069.         (source "CacheCDFSInst:EjectCD")
  1070.         (dest "CacheCDFS:")
  1071.         (help "\n\nThis will copy over the EjectCD utility "
  1072.                 "to your CacheCDFS directory\n\nIf you do not "
  1073.                 "wish the EjectCD program to be transferred to your system, "
  1074.                 "skip this step.\n" )
  1075.         (infos)
  1076.         (confirm)
  1077.     )
  1078.  
  1079.     (tooltype
  1080.         (dest "CacheCDFS:EjectCD" )
  1081.         (settooltype "DEVICE" #CDROM_Device )
  1082.         (settooltype "UNIT" ("%ld" #CDROM_Unit ))
  1083.         (noposition)
  1084.     )
  1085. ))
  1086.  
  1087. (set #instPlayCD 0)
  1088.  
  1089. (if (exists "CacheCDFSInst:PlayCD.lha")
  1090.  
  1091. ((set #instPlayCD
  1092.     (askbool
  1093.         (prompt "\n\nShould the PlayCD Audio Player be installed?")
  1094.         (help "\n\nThis will copy over the PlayCD drawer "
  1095.                 "to your CacheCDFS directory\n\nIf you do not "
  1096.                 "wish the PlayCD drawer to be transferred to your system, "
  1097.                 "skip this step." )
  1098.         (default 1)
  1099.     )
  1100. )))
  1101.  
  1102. (if #instPlayCD
  1103.     (
  1104.  
  1105.     (working "\n\nDecrunching PlayCD...."
  1106.              "\n\nPlease Wait!")
  1107.  
  1108.     ( if (NOT @pretend )
  1109.     (( if ( run "CacheCDFSInst:c/lhex -afFqw=CacheCDFS: e CacheCDFSInst:PlayCD.lha" )
  1110.         (
  1111.         (abort "\n\nUnable to decrunch PlayCD!")
  1112.         )
  1113.     )))
  1114.  
  1115.  
  1116.     (tooltype
  1117.         (dest "CacheCDFS:PlayCD/PlayCD" )
  1118.         (settooltype "DEVICE" #CDROM_Device )
  1119.         (settooltype "UNIT" ("%ld" #CDROM_Unit ))
  1120.         (settooltype "BUFMEMTYPE" ("%ld" #BufMemInt ))
  1121.     )
  1122.     )
  1123. )
  1124.  
  1125. (complete 80 )
  1126.  
  1127.  
  1128. (set #instJukebox 0)
  1129.  
  1130. (if (exists "CacheCDFSInst:JukeBox.lha")
  1131. ((set #instJukebox
  1132.     (askbool
  1133.         (prompt "\n\nShould the JukeBox Audio Player be installed?")
  1134.         (help "\n\nThis will copy over the JukeBox drawer "
  1135.                 "to your CacheCDFS directory\n\nIf you do not "
  1136.                 "wish the JukeBox drawer to be transferred to your system, "
  1137.                 "skip this step." )
  1138.         (default 1)
  1139.     )
  1140. )))
  1141.  
  1142. (if #instJukebox
  1143.     (
  1144.     (protect "CacheCDFS:JukeBox" "rwed" )
  1145.     (protect "CacheCDFS:JukeBox.info" "rwed" )
  1146.     (makedir "CacheCDFS:JukeBox" 
  1147.         (infos)
  1148.         (prompt "\n\nCreating drawer for JukeBox\n")
  1149.         (help "\n\nThis will create a drawer for the JukeBox "
  1150.                 "Audio Player." )
  1151.     )
  1152.  
  1153.  
  1154. (working "\n\nDecrunching Jukebox...."
  1155.          "\n\nPlease Wait!")
  1156.  
  1157.     ( if (NOT @pretend )
  1158.     (( if ( run "CacheCDFSInst:c/lhex -qafFw=CacheCDFS:Jukebox e CacheCDFSInst:JukeBox.lha" )
  1159.         (
  1160.         (makeassign "JukeBox")
  1161.         (abort "\n\nUnable to decrunch JukeBox!")
  1162.         )
  1163.     )))
  1164.  
  1165.  
  1166.     (tooltype
  1167.         (dest "CacheCDFS:Jukebox/JukeBox" )
  1168.         (settooltype "DEVICE" #CDROM_Device )
  1169.         (settooltype "UNIT" ("%ld" #CDROM_Unit ))
  1170.     )
  1171.  
  1172. ))
  1173.  
  1174.  
  1175. (if (AND (> #wbversion 38) (exists "CacheCDFSInst:CD32.lha"))
  1176.  
  1177.     ((complete 90 )
  1178.  
  1179.     (set #instCD32
  1180.         (askbool
  1181.             (prompt "\n\nShould the CD32-Emulator be installed?"
  1182.                     "\n\nNote that the CD32-Emulator is completely useless "
  1183.                     "if you don't have an Amiga with AA/AGA chipset and "
  1184.                     "at least Kickstart version 3.0!")
  1185.             (help "\n\nThis will copy over the CD32 drawer "
  1186.                     "to your CacheCDFS directory\n\nIf you do not "
  1187.                     "wish the CD32 drawer to be transferred to your system, "
  1188.                     "skip this step.")
  1189.             (default 1)
  1190.         )
  1191.     )
  1192.  
  1193.     (if #instCD32
  1194.         (
  1195.         (working "\n\nDecrunching CD32...."
  1196.                  "\n\nPlease Wait!")
  1197.  
  1198.         ( if (NOT @pretend )
  1199.         (( if ( run "CacheCDFSInst:c/lhex -afFqw=CacheCDFS: e CacheCDFSInst:CD32.lha" )
  1200.             (
  1201.             (abort "\n\nUnable to decrunch CD32!")
  1202.             )
  1203.         )))
  1204.  
  1205.     
  1206.         (if (exists "CacheCDFSInst:CD32" )
  1207.             ((copylib
  1208.                 (prompt "This will copy the CD32 program.")
  1209.                 (help "This will copy the CD32 program.")
  1210.                 (source "CacheCDFSInst:CD32")
  1211.                 (infos)
  1212.                 (dest "CacheCDFS:CD32")
  1213.                 (confirm)
  1214.             ))
  1215.         )
  1216.  
  1217.  
  1218.         ( set #CDROM_Blocks 2 )
  1219.  
  1220.         (if (= #CDROM_Device "tandemcd.device")
  1221.             (
  1222.             ( set #CDROM_Blocks 4 )
  1223.             )
  1224.         )
  1225.  
  1226.         (if (= #CDROM_Device "tandemat.device")
  1227.             (
  1228.             ( set #CDROM_Blocks 4 )
  1229.             )
  1230.         )
  1231.  
  1232.         (if (= #CDROM_Device "tandemcd_pcmcia.device")
  1233.             (
  1234.             ( set #CDROM_Blocks 4 )
  1235.             )
  1236.         )
  1237.  
  1238.         (if (= #CDROM_Device "tandemcd_come.device")
  1239.             (
  1240.             ( set #CDROM_Blocks 4 )
  1241.             )
  1242.         )
  1243.  
  1244.         (tooltype
  1245.             (dest "CacheCDFS:CD32/CD32" )
  1246.             (settooltype "BLOCKS" ("%ld" #CDROM_Blocks ) )
  1247.             (settooltype "DOSDEV" #CDDevice_NC)
  1248.             )
  1249.  
  1250.     ))
  1251. ))
  1252.  
  1253. (complete 100 )
  1254.  
  1255.  
  1256. (makeassign "CacheCDFSInst" (safe))
  1257. (makeassign "CacheCDFS" (safe))
  1258.  
  1259.